
import Swap from './swap';
import Nb from './nb';
import Qh from './qh';
import Address from './address';

// const req = require.context('./', false, /\.js$/);
// const requireAll = requireContext => requireContext.keys()
// requireAll(req)
// const re = /\.\/(.*)\.js/
// const names = requireAll(req).map(i => {
//   return i.match(re)[1]
// })

const lang = {
  'zh-CN': {
    ...Swap.zhCN,
    ...Nb.zhCN,
    ...Qh.zhCN,
    ...Address.zhCN,
  },
  'zh-TW': {
    ...Swap.zhTW,
    ...Nb.zhTW,
    ...Qh.zhTW,
    ...Address.zhTW,
  },
  en: {
    ...Swap.en,
    ...Nb.en,
    ...Qh.en,
    ...Address.en,
  },
  ko: {
    ...Swap.ko,
    ...Nb.ko,
    ...Qh.ko,
    ...Address.ko,
  }
};

export default {
  en: lang.en,
  zhCN: lang['zh-CN'],
  zhTW: lang['zh-TW'],
  ko: lang.ko
}
